﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="TAMS.login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head id="Head1" runat="server">
<link href="Styles/common.css" type="text/css" rel="stylesheet" />
<title></title>

    <style type="text/css">
        .style2
        {
            width: 325px;
        }
        .style3
        {
            width: 201px;
        }
    </style>

</head>

<body class="common">
    <center>
    <form id="form1" runat="server" style="margin-left: auto; margin-right: auto;">
    <div>
        <table cellspacing="0" cellpadding="0" width="100%" style="height: 253px;" >
            <tr>
                <td align="center" class="style3">
                    <asp:Image ID="Image1" runat="server" 
                        ImageUrl="~/Resources/Bilkent_universitesi_logosu_amblemi.jpg" />
                </td>
                    <td align="center" class="style2">
                    <asp:Label ID="Label1" runat="server" Text="Bilkent  TAMS" Font-Bold="True" 
                    Font-Size="X-Large"></asp:Label>
                </td>
                <td align="center" class="style3">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="center" class="style3">
                    &nbsp;</td>
                    <td align="center" class="style2">
                    <asp:Label ID="Label2" runat="server" 
                        Text="Teaching Assistant Management System" Font-Bold="True" 
                        Font-Size="Medium"></asp:Label>
                        <br />
                            <table class="login" cellpadding="0" cellspacing="10" 
                                align="center" frame="box">
                                <tr>
                                    <td align="center" colspan="2" 
                                        style="color:White;background-color:#507CD1;font-size:1.2em;font-weight:bold;">
                                        <div>
                                        </div>
                                        Log In</td>
                                </tr>
                                 <tr>
                                    <td align="left">
                                        <asp:Label ID="UserTypeLabel" runat="server" AssociatedControlID="UserName">User Type:</asp:Label>
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="DropDownList1" runat="server" 
                                            onselectedindexchanged="DropDownList1_SelectedIndexChanged" Height="19px" 
                                            style="margin-left: 1px" Width="136px" Font-Size="0.9em">
                                            <asp:ListItem>Admin</asp:ListItem>
                                            <asp:ListItem>TA</asp:ListItem>
                                            <asp:ListItem>RA</asp:ListItem>
                                            <asp:ListItem>Faculty Member</asp:ListItem>
                                            <asp:ListItem>Instructor</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                     
                                </tr>
                                <tr>
                                    <td align="left">
                                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User ID:</asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="UserName" runat="server" Font-Size="0.9em" 
                                            ontextchanged="UserName_TextChanged"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                            ControlToValidate="UserName" ErrorMessage="User Name is required." 
                                            ToolTip="User Name is required." ForeColor="Red">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left">
                                        <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="Password" runat="server" Font-Size="0.9em" TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                            ControlToValidate="Password" ErrorMessage="Password is required." 
                                            ToolTip="Password is required." ForeColor="Red">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                    <tr>
                                        <td colspan="2">
                                            <asp:CheckBox ID="RememberMe" Checked="False" runat="server" Text="Remember me next time." 
                                                oncheckedchanged="RememberMe_CheckedChanged" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="2" style="color:Red;">
                                            <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" colspan="2">
                                            <asp:Button ID="LoginButton" runat="server" Text="Log In" CssClass="button" onclick="LoginButton_Click" />
                                        </td>
                                    </tr>
                            </table>
                </td>
                <td align="center" class="style3">
                    &nbsp;</td>
            </tr>

        </table>
    </div>
    </form>
    </center>
</body>
</html>
